private OsmDataLayer layer;
public Command() {
this.layer = Main.map.mapView.getEditLayer();
}
/**
* Creates a new command in the context of the current edit layer, if any
*/
public Command() {
this.layer = Main.map != null && Main.map.mapView != null ? Main.map.mapView.getEditLayer() : null;
}
/**